<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        function Aa(name) {
            this.name =
                'nana';
        }
        Aa.prototype.run = function () {
            console.log("Aa中的run函数被调用了");
        }
        function Bb(name2) {
            Aa.call(this, name2);
        }
        Bb.prototype = Object.create(Aa.prototype);
        Bb.prototype.trunst = function () {
            console.log("Bb中的run函数");
        }
            var b = new Bb("lili");
            console.log(b);
            console.log(b.run());



        
    </script>
</body>
</html>